﻿using IBLL;
using IDAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class PlaceBLL : IPlaceBLL
    {
        public PlaceBLL(IShopDAL<PlaceModel>dal)
        {
            Dal = dal;
        }

        public IShopDAL<PlaceModel> Dal { get; }

        public Task<int> AddPlace(PlaceModel place)
        {
            return Dal.AddShopAsync(place);
        }

        public List<PlaceModel> GetPlaces()
        {
            return Dal.GetAllShopAsync().ToList();
        }
    }
}
